package work.timejay.shop.controller.shop;


import cn.dev33.satoken.annotation.SaIgnore;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import work.timejay.common.ApiResult;
import work.timejay.shop.entity.shop.ShopType;

import work.timejay.shop.service.shop.ShopTypeService;
import work.timejay.vo.shop.ShopTypeItemVO;

import java.util.List;

/**
 * <p>
 * 项目类型表 前端控制器
 * </p>
 *
 * @author 王文杰
 * @since 2024-02-05
 */
@RestController
@RequestMapping("/api/shop-type")
public class ShopTypeController {

    @Autowired
    private ShopTypeService shopTypeService;

    @PostMapping(value = "/list")
    @SaIgnore
    public ApiResult<List<ShopTypeItemVO>> list(){
        List<ShopTypeItemVO> voList = shopTypeService.shopTypeList();
        return ApiResult.success(voList);
    }
}

